﻿using Autodesk.AutoCAD.DatabaseServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace AutoCadConvert
{
    public class Hole : Cube
    {
        public double DistFloor;

        public Hole()
        {
        }
        public override IEnumerable<XElement> ToXml()
        {
            return base.ToXml().Concat(new XElement[] {
                new XElement("DistFloor",DistFloor)
            });
        }
    }
    public class Holes: Collection
    {
        public List<Hole> m_Hole = new List<Hole>();
        public Holes(House house) : base(house){}
        public override IEnumerable<XElement> ToXml()
        {
            int idx = 0;
            foreach (Hole hl in m_Hole)
                yield return new XElement("_" + idx++, hl.ToXml());
        }
    }
}
